package org.pay.service.dao.mapper;

import org.apache.ibatis.annotations.Param;
import org.pay.core.entity.MchAccountHistory;
import org.pay.core.entity.MchAccountHistoryExample;

import java.util.List;
import java.util.Map;

public interface MchAccountHistoryMapper {
    int countByExample(MchAccountHistoryExample example);

    int deleteByExample(MchAccountHistoryExample example);

    int deleteByPrimaryKey(Long id);

    int insert(MchAccountHistory record);

    int insertSelective(MchAccountHistory record);

    List<MchAccountHistory> selectByExample(MchAccountHistoryExample example);

    MchAccountHistory selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") MchAccountHistory record, @Param("example") MchAccountHistoryExample example);

    int updateByExample(@Param("record") MchAccountHistory record, @Param("example") MchAccountHistoryExample example);

    int updateByPrimaryKeySelective(MchAccountHistory record);

    int updateByPrimaryKey(MchAccountHistory record);

    /**
     * 查询待结算汇总数据
     * @param param
     * @return
     */
    Map selectSettDailyCollect(Map param);

    /**
     * 更新结算状态
     * @param param
     */
    void updateCompleteSett(Map param);
}